package cn.hotel.utlis;

import java.util.Map;

public class MapUtil {

    public static String getString (Map<String,Object> map,String key){
        if(map!=null && !map.isEmpty()){
            Object result = map.get(key);
            if(result instanceof String){
                return (String) result;
            }
        }
        return null;
    }
}